import { User } from "../../../../../modeal/user.js"
const user = new User()
Component({

  properties: {
    carInfo: Object,
    currentIndex: Number,
    selectedSiteId: Number,
    canUseCoupon: Object,
    selectedCoupon: Object,
    selectedCouponId: Number,
    finalPayment: Number,
  },


  data: {
    shopInfo: {},
  },
  attached () {
    let shopInfo = wx.getStorageSync('shopInfo')
    this.setData({ shopInfo })
  },

  methods: {
    // 选择优惠券
    chooseCoupon () {
      wx.navigateTo({ url: "/pages/shopping/common/chooseCoupon/chooseCoupon" })
    },
  },

})
